<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>留言信息列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{:U('add')}">新 增</a>
            <button class="btn ajax-post" url="{:U('setStatus',array('status'=>1))}" target-form="ids">已提交</button>
            <button class="btn ajax-post" url="{:U('setStatus',array('status'=>2))}" target-form="ids">已回复</button>
            <!--
			<button class="btn ajax-post" url="{:U('User/changeStatus',array('method'=>'resumeUser'))}" target-form="ids">启 用</button>
            <button class="btn ajax-post" url="{:U('User/changeStatus',array('method'=>'forbidUser'))}" target-form="ids">禁 用</button>
            <button class="btn ajax-post confirm" url="{:U('User/changeStatus',array('method'=>'deleteUser'))}" target-form="ids">删 除</button>
			-->
        </div>

        <!-- 高级搜索 -->
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="nickname" class="search-input" value="{:I('nickname')}" placeholder="请输入配置名称">
				<a class="sch-btn" href="javascript:;" id="search" url="{:U('index')}"><i class="btn-search"></i></a>
			</div>
		</div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">ID</th>
		<th class="">留言人</th>
		<th class="">联系手机</th>
		<th class="">留言分类</th>
		<th class="">留言标题</th>
		<th class="">留言时间</th>
		<th class="">留言状态</th>
		<th class="">回复人</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<volist name="list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
			<td>{$vo.id} </td>
			<td>{$vo.name}</td>
			<td>{$vo.mobile}</td>
			<td>{$vo.tname}</td>
			<td>{$vo.title|csubstr=0,5,'utf-8',true}</td>
			<td><span>{$vo.ctime|time_format}</span></td>
			<td>{$status[$vo['status']]}</td>
			<td>{$vo.reply_userid|get_username}</td>
			<td>
				<a href="{:U('detail?id='.$vo['id'])}">详情及回复</a>
				<a href="{:U('del?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
            </td>
		</tr>
		</volist>
	</tbody>
    </table> 
	</div>
    <div class="page">
        {$_page}
    </div>
</block>